Skip to content

Comments

Avoid http-level retries during upload requests#556

Merged
olzhasar-reef merged 1 commit intomasterfrom
avoid-b2http-retries-upload
Feb 22, 2026
Merged

Avoid http-level retries during upload requests#556
olzhasar-reef merged 1 commit intomasterfrom
avoid-b2http-retries-upload

Conversation

@olzhasar-reef
Copy link
Collaborator

This PR fixes the b2http logic to avoid any retries during the upload
requests. Previously, the http layer would still proceed with retries
during upload failures, preventing the upload manager from issuing a new
upload token.
There was a workaround only for timeout errors, but it didn't quite work as
expected.

@olzhasar-reef olzhasar-reef force-pushed the avoid-b2http-retries-upload branch 2 times, most recently from b00e648 to bc212bb Compare February 16, 2026 19:48
Pass try_count=1 to b2http during upload requests to force token refresh
on errors. This change also eliminates the need for a previous
B2RequestTimeoutDuringUpload workaround, so it's removed. The exception
itself is preserved, as it's a part of the public API.
@olzhasar-reef olzhasar-reef force-pushed the avoid-b2http-retries-upload branch from bc212bb to b16641d Compare February 16, 2026 19:51
@olzhasar-reef olzhasar-reef merged commit 504859f into master Feb 22, 2026
24 checks passed
@olzhasar-reef olzhasar-reef deleted the avoid-b2http-retries-upload branch February 22, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants